Prepare for tarball-of-po-files.
authorRobert Brady <rbrady@src.gnome.org>
Tue, 21 Nov 2000 17:53:43 +0000 (17:53 +0000)
committerRobert Brady <rbrady@src.gnome.org>
Tue, 21 Nov 2000 17:53:43 +0000 (17:53 +0000)
po/ChangeLog
po/update.pl

index a06da88a780fa186ddd166523b8bdcd892baf706..d5c45dc136a52a52c99e341326f3d80e85f524e4 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-21  Robert Brady  <robert@suse.co.uk>
+
+       * update.pl: Allow a parameter to specify the name of the .pot
+       file to generate. (for stats).
+
 2000-11-12  Robert Brady  <robert@suse.co.uk>
 
        * *.po: Convert them all to UTF-8. Rename Chinese .po's so
index d6b2fc89f9e7e616c148ae9758ec4e124d26a512..e044a3012df6b37c8d4670211189cc30faf392a8 100755 (executable)
@@ -44,13 +44,19 @@ if ($LANG=~/^-(.)*/){
 
     elsif($LANG eq "--pot" || "$LANG" eq "-P"){
                 
-        print "Building the $PACKAGE.pot ...";
+       shift;
+       $REALPACKAGE = shift;
+       if (!$REALPACKAGE) {
+           $REALPACKAGE = $PACKAGE;
+       }
+
+        print "Building the $REALPACKAGE.pot ...";
 
         $b="xgettext --default-domain\=$PACKAGE --directory\=\.\."
           ." --add-comments --keyword\=\_ --keyword\=N\_"
           ." --files-from\=\.\/POTFILES\.in ";
         $b1="test \! -f $PACKAGE\.po \|\| \( rm -f \.\/$PACKAGE\.pot "
-           ."&& mv $PACKAGE\.po \.\/$PACKAGE\.pot \)";
+           ."&& mv $PACKAGE\.po \.\/$REALPACKAGE\.pot \)";
          
         `$b`;
         `$b1`;